let vm = new Vue({
    el: "#app",
    data: {
     
      
        hot: [
            { name1: '年贷节热卖' },
            { name1: '津贴联盟' },
            { name1: '满减优惠' },
            { name1: '品质联盟' },
        ],
        arr2: [
            { pic: '2.jbw.jpg', title: '秋刀鱼/斤', price: 35, cond: 35, num: 1},
            { pic: '2.jz.jpg', title: '鲜大带鱼/条', price: 45, cond: 45, num: 1},
            { pic: '2.jbw.jpg', title: '鲜活皮皮虾/斤', price: 85, cond: 85, num: 1 },
            { pic: '2.jz.jpg', title: '13-15头鲍鱼/只', price: 60, cond: 60, num: 1 },
        ],
    },

    methods: {
       jian(item){
        if(item.num>1){
            item.num--;
        }
       
         },
         jia(item){
             item.num++;
         }
       }
    

})